
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="com.database.DataBase" %>
<html>
  <head>

    <title>My JSP 'wintypecallSetSub.jsp' starting page</title>

  </head>
  
  <body>
      <%
        
        
         String WinTypeCallID=new String(request.getParameter("WinTypeCallID").toString().getBytes("ISO8859_1"));
         String WinTypeCallID1=request.getParameter("WinTypeCallID1");
         String WinTypeName=new String(request.getParameter("WinTypeName").toString().getBytes("ISO8859_1"));
         String WinTypeStartTime=new String(request.getParameter("WinTypeStartTime").toString());
         String WinTypeEndTime=new String(request.getParameter("WinTypeEndTime").toString());
         String WinTypeStartTime1=new String(request.getParameter("WinTypeStartTime1").toString());
         String WinTypeEndTime1=request.getParameter("WinTypeEndTime1").toString();
         String IsTicketButton=request.getParameter("IsTicketButton").toString();
         String StopAtWeekEnd=request.getParameter("StopAtWeekEnd").toString();
         String ID="";
         String branchID="";
         DataBase base=new DataBase();
         String sql="";
        
                   ID=request.getSession().getAttribute("ID").toString();
                   branchID=request.getSession().getAttribute("branchNO").toString();
                   sql="update wintypeall set WinTypeCallID='"+WinTypeCallID+"',WinTypeCallID1='"+WinTypeCallID1+"',WinTypeName='"+WinTypeName+"',WinTypeStartTime='"+WinTypeStartTime+"',WinTypeEndTime='"+WinTypeEndTime+"',WinTypeStartTime1='"+WinTypeStartTime1+"',WinTypeEndTime1='"+WinTypeEndTime1+"',IsTicketButton='"+IsTicketButton+"',StopAtWeekEnd='"+StopAtWeekEnd+"' where ID='"+ID+"' and branchID='"+branchID+"'";
         
        
         System.out.println(sql);
         base.executeUpdate(sql);
         base.closeStmt();
         base.closeConn();
        
               response.sendRedirect("wintypecallSuccess.jsp?ID="+ID+"&branchID="+branchID+"&sign=1");
        
   %>
  </body>
</html>
